

.moor-layout {
	position: absolute;
	z-index: 500;
	width: 285px;
	height: 153px;
	.border-radius(4px);
	#gradient > .vertical(rgba(95, 95, 95, 0.9), rgba(51, 51, 51, 0.9));
	.box-shadow(0 0 20px rgba(0, 0, 0, 0.5));

	top: 100px;
	left: 200px;
	font-size: 0.82em;
	visibility: hidden;

	.arrow {
		#CSSArrow > .right(6px, rgba(95, 95, 95, 0.9));
		position: absolute;
		left: -6px;
		top: 15px;
	}

	.moor-overlay, .moor-slider, .moor-inputs, .moor-colorsbox {
		position: absolute;
		top: 10px;
	}

	.moor-overlay {
		.square(132px);
		left: 10px;
		border: 1px solid #444;
		overflow: hidden;

		.moor-overlay-white, .moor-overlay-black {
			position: absolute;
			top: 0;
			left: 0;
			.square(132px);
			.background-size(100% 100%);
		}

		.moor-overlay-white {
			background-image: url();
		}

		.moor-overlay-black {
			background-image: url();
		}

		.moor-overlay-cursor {
			.square(12px);
			position: absolute;
			left: -6px;
			top: -6px;
			background-image: url();
		}
	}

	.moor-slider {
		left: 152px;
		border: 1px solid #444;

		.moor-slider-colors {
			background-image: url();
			.background-size(100% 100%);
			width: 12px;
			height: 132px;
		}

		.moor-slider-cursor {
			width: 26px;
			height: 8px;
			position: absolute;
			top: -4px;
			left: -7px;
			background-image: url();
		}
	}

	.moor-colorsbox {
		left: 174px;
		border: 1px solid #444;
		.border-radius(3px);
		height: 23px;

		div {
			width: 32px;
			height: 23px;
			display: inline-block;

			&:first-child {
				.border-radius(2px 0 0 2px);
			}

			&:last-child {
				.border-radius(0 2px 2px 0);
			}

			&.moor-colorsbox-selected {
				cursor: pointer;
			}
		}
	}

	.moor-inputs {
		left: 174px;
		top: 44px;

		.moor-inputs-block {
			margin: 2px 0;
			display: none;

			&.moor-inputs-block-active {
				display: block;
			}

			span, input {
				display: inline-block;
				color: #fefefe;
				text-shadow: 0 1px 0 #000;
			}

			span {
				min-width: 10px;
			}

			input {
				width: 30px;
				padding: 2px;
				background: #777;
				border: 1px solid #444;
				margin: 0 4px;
				.border-radius(2px);
				font-size: 1em;
				line-height: 1em;
			}

			&.moor-inputs-hex {
				display: block;

				input {
					width: 60px;
					display: block;
					margin: 0;
				}
			}
		}
	}

	.moor-buttons {
		position: absolute;
		bottom: 6px;
		right: 0;

		.moor-button {
			background: #444;
			color: #bbb;
			padding: 4px 6px;
			margin-top: 4px;
			min-width: 25px;
			cursor: pointer;
			.border-radius(4px 0 0 4px);
			.box-shadow(~"0 1px 0 rgba(0, 0, 0, 0.1) inset, 0 1px 0 rgba(255, 255, 255, 0.1)");

			&:hover, &.moor-button-active {
				.box-shadow(~"0 0 8px rgba(0, 0, 0, 0.3) inset, 0 1px 0 rgba(0, 0, 0, 0.1) inset, 0 1px 0 rgba(255, 255, 255, 0.1)");
				background: #393939;
				color: @white;
			}

			&.moor-button-close {
				font-size: 20px;
				text-align: center;
				color: @white;
			}

			&.moor-button-transparent {
				height: 18px;
				background-image: url();
				background-repeat: no-repeat;
				background-position: 50% 50%
			}

			&.moor-button-rgb {
				margin-top: 30px;
			}

			&.moor-button-active {
				color: #ff9c48;
			}
		}
	}
}

input.picker-input {
	float: left;
	margin-top: 0px;
	margin-right: 5px;
}
div.picker {
	.size(31px, 30px);
	float: left;

	.overlay {
		.size(31px, 30px);
		background-image: url();

		div {
			background: none;
		}
	}

	.overlay-transparent {
		background-image: url();
		background-position: 50% 50%;
		background-repeat: no-repeat;

		div {
			background-image: url();
			background-repeat: no-repeat;
			.size(31px, 30px);
		}
	}
}
